<script setup>
import {onMounted} from "vue";
import {useUserStore} from "@/store/userStore.js";
let props = defineProps({
  user:[]
})
let onSubmit = async () => {
  useUserStore().currentUser = {...props.user}
  console.log(props.user)
}
</script>

<template>
  <!-- The button to open modal -->
  <a href="#my_modal_8" class="btn btn-accent btn-xs" @click="onSubmit">编辑</a>
</template>

<style scoped>

</style>